Visual Basic (Declaration) | |
---|---|
Overloads Function Pager(Of TResult)( _ ByVal selector As Func(Of IQueryable(Of T),IQueryable(Of TResult)), _ ByVal pageSize As Integer, _ ByVal sortSelector As IdeaBlade.Core.ISortSelector, _ Optional ByVal predicate As Expression(Of Func(Of T,Boolean)) _ ) As IPager(Of TResult) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IPagerRepository(Of T) Dim selector As Func(Of IQueryable(Of T),IQueryable(Of TResult)) Dim pageSize As Integer Dim sortSelector As IdeaBlade.Core.ISortSelector Dim predicate As Expression(Of Func(Of T,Boolean)) Dim value As IPager(Of TResult) value = instance.Pager(Of TResult)(selector, pageSize, sortSelector, predicate) |
C# | |
---|---|
IPager<TResult> Pager<TResult>( Func<IQueryable<T>,IQueryable<TResult>> selector, int pageSize, IdeaBlade.Core.ISortSelector sortSelector, Expression<Func<T,bool>> predicate ) |
C++/CLI | |
---|---|
IPager<TResult^>^ Pagergeneric<typename TResult> ( Func<IQueryable<T^>^,IQueryable<TResult^>^>^ selector, int pageSize, IdeaBlade.Core.ISortSelector^ sortSelector, Expression<Func<T^,bool>^>^ predicate ) |
Parameters
- selector
- The selector used to shape the entities.
- pageSize
- The desired page size.
- sortSelector
- Required sorting criteria.
- predicate
- Optional predicate to filter the paged entities.
Type Parameters
- TResult
- The shape of the result.
Return Value
IPager<T> which allows the shaped entities to be paged.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family